package com.design.behavior.command.cainiao;

/**
 * @ProjectName: design
 * @Package: com.design.behavior.command.cainiao
 * @ClassName: Stock
 * @Author: shenaiguo
 * @Description: 创建一个请求类
 * @Date: 2020/10/1 0001 10:44
 */
// 步骤2
public class Stock {
    private String name = "ABC";
    private int quantity = 10;

    public void buy(){
        System.out.println("name:"+name+",quantity:"+quantity+"bought");
    }
    public void sell(){
        System.out.println("name:"+name+",quantity:"+quantity+"sold");
    }
}
